package com.central.datax.plugin.writer.hivewriter;

/**
 * @author Tindy
 * @date 2022/3/7
 * @describe
 */
public class Key {

    // Kerberos
    public static final String HAVE_KERBEROS = "haveKerberos";
    public static final String KERBEROS_CONF_FILE_PATH = "kerberosConfFilePath";
    public static final String KERBEROS_KEYTAB_FILE_PATH = "kerberosKeytabFilePath";
    public static final String KERBEROS_PRINCIPAL = "kerberosPrincipal";

    public final static String JDBC_URL = "jdbcUrl";

    public final static String USERNAME = "username";

    public final static String PASSWORD = "password";

    public final static String TABLE = "table";

    public final static String MANDATORY_ENCODING = "mandatoryEncoding";

    // 是数组配置
    public final static String COLUMN = "column";

    public final static String COLUMN_LIST = "columnList";

    public final static String WHERE = "where";

    public final static String HINT = "hint";

    public final static String SPLIT_PK = "splitPk";

    public final static String SPLIT_MODE = "splitMode";

    public final static String SAMPLE_PERCENTAGE = "samplePercentage";

    public final static String QUERY_SQL = "querySql";

    public final static String SPLIT_PK_SQL = "splitPkSql";


    public final static String PRE_SQL = "preSql";

    public final static String POST_SQL = "postSql";

    public final static String CHECK_SLAVE = "checkSlave";

    public final static String SESSION = "session";

    public final static String DBNAME = "dbName";

    public final static String DRYRUN = "dryRun";
    public static final String TARGET_COLUMNS = "targetColumns";

    public static String SPLIT_FACTOR = "splitFactor";

    public final static String WEAK_READ = "weakRead";

    public final static String SAVE_POINT = "savePoint";

    public final static String REUSE_CONN = "reuseConn";

    public final static String PARTITION_NAME = "partitionName";
    //must have
    public final static String DEFAULT_FS = "defaultFS";
    //可选值为：into,overwrite，默认为 into
    public final static String WRITE_MODE = "writeMode";

    // must have
    public static final String FILE_NAME = "fileName";

    // must have for column
    public static final String NAME = "name";
    public static final String TYPE = "type";
    public static final String DEFAULT_VALUE = "defVal";

}
